layui.use(['table', 'admin', 'ax','simTool','form','laydate'], function () {
    var $ = layui.$;
    var table = layui.table;
    var $ax = layui.ax;
    var admin = layui.admin;
    var simtool = layui.simTool;
    var laydate = layui.laydate;
    var form = layui.form;

    /**
     * 会员用户管理
     */

    /**
     * 详情对话框
     */
    var PlayerInfoDlg = {
        data: {
            userNo: "",
            userName: "", //总金额
            amount: "",
            //现金支付i
            payCashAmount: "",
            //积分抵扣的金额数
            payScoreAmount: "",
            orderCount: "",
            shareUserCount: "",
            allScore: "",
            unUseScore: "",
        }
    };

    //获取详情信息，填充表单
    var ajax = new $ax(Feng.ctxPath + "/player/consumeList?userNo=" + Feng.getUrlParam("userNo"));
    var result = ajax.start();
    form.val('playerForm', result.data[0]);
    $("#userNo").val(result.data[0].userNo);
    $("#userName").val(result.data[0].userName);
    $("#amount").val(result.data[0].amount);
    $("#payCashAmount").val(result.data[0].payCashAmount);
    $("#payScoreAmount").val(result.data[0].payScoreAmount);
    $("#orderCount").val(result.data[0].orderCount);
    $("#shareUserCount").val(result.data[0].shareUserCount);
    $("#allScore").val(result.data[0].allScore);
    $("#unUseScore").val(result.data[0].unUseScore);
    form.render();
});
